<?php

use Illuminate\Routing\Router;

// 20230425 功能已不再维护
Route::group([
    'prefix' => 'admin/TodayPrettyThing',
    'namespace' => 'Frieza\\Modules\\TodayPrettyThing\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/index/', 'TodayPrettyThingController@index');
    $router->get('/index/{year}', 'TodayPrettyThingController@index');
    $router->get('/index/{year}/{month}', 'TodayPrettyThingController@index');

    $router->get('/edit/{date}/{id}', 'TodayPrettyThingController@edit');
    $router->get('/edit/{date}', 'TodayPrettyThingController@edit');

    $router->get('/topic', 'TodayPrettyThingController@topic');
    $router->post('/topic/save', 'TodayPrettyThingController@topicSave');

    $router->post('/save', 'TodayPrettyThingController@save');
});